package com.cerosoft.api.exceptions;

/**
 * Thrown when a web service response can't be parsed due to formatting errors,
 * etc.
 * 
 * @author nliang@book.com
 * 
 */

public class ResponseException extends ConnectionException {
	private WebserviceError error;

	public ResponseException(String message) {
		super(message);
	}

	public ResponseException(Exception exception) {
		super(exception);
	}

	public ResponseException() {
	}

	public ResponseException(WebserviceError error, String message) {
		super(message);
		this.error = error;
	}

	public WebserviceError getError() {
		return this.error;
	}
}
